package main

import (
	"fmt"
	"./shape"
	"./square"
	"./rectangle"
	"./circle"
)

func main() {
	s:=square.NewSquare(10)
	r:=rectangle.NewRectangle(20,30)
	c:=circle.NewCircle(100)

	shapes:=[]shape.Shape{&s,&r,&c}
	for i, _ :=range shapes {
		fmt.Println(shapes[i].Area())
	}
}
